//
//  ActivityDetailTableViewCell.m
//  AndCampus
//
//  Created by 史宵宵 on 2017/12/29.
//  Copyright © 2017年 史宵宵. All rights reserved.
//

#import "ActivityDetailTableViewCell.h"

@implementation ActivityDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setActivityInfo:(ActivityInfo *)activityInfo{
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:activityInfo.pathUrl] placeholderImage:KBANNERDEFAULT];
    self.titleLabel.text = [NSString stringWithFormat:@"%@(%@)",activityInfo.title,[activityInfo.type isEqualToString:@"1"]?@"户外":[activityInfo.type isEqualToString:@"2"]?@"室内":@"校园区域"];
    self.timeLabel.text = [NSString stringWithFormat:@"创建时间：%@  浏览数：%@",strIsEmpty(activityInfo.createDate)?@"":[activityInfo.createDate substringToIndex:10],activityInfo.fee];
    self.statusLabel.text = @"交易保障";
}
- (IBAction)backList:(id)sender {
    if (self.backActivityListBlock) {
        self.backActivityListBlock();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
